package jp.java.test1.pkg20_29.test28;

public class Main {
	public static void main(String[] args) {
		Outer o = new Outer();
		System.out.println(o.getSample());
	}

}
class Parent {
	public String toString() {
		return "Parent";
	}
}

class Child extends Parent {
	public String toString() {
		return "Child";
	}
}
class Outer {
	Child s = new Child() {
		public String toString() {
			return super.toString();
		}
	};
	
	public Child getSample() {
		return s;
	}
}